package cc.wanforme.fsync.config.restUpload;

import org.springframework.core.io.FileSystemResource;

/**
 * 带有 ID 属性的 FileSystemResource ，id用来区分
 */
public class IDFileSystemResource extends FileSystemResource implements IDResource<Long> {
    private Long id;

    public IDFileSystemResource(Long id, String file) {
        super(file);
        this.id = id;
    }

    @Override
    public Long getID() {
        return id;
    }

}
